View.ShapeDecoration
Decoration object that describes visualization properties for shapes and points.
- View.ShapeDecoration.create()
- Return type:
Creates a new ShapeDecoration.
The default values for the decoration are:
lineWidth = 1.0
lineColor = (0, 0, 0, 255)
fillColor = (0, 0, 0, 0)
pointType = “DOT”
pointSize = 3.0
These values can be changed by using the corresponding functions.
- View.ShapeDecoration.setFillColor(deco, red, green, blue, alpha)
- Arguments:
deco (
View.ShapeDecoration)red (
int)green (
int)blue (
int)alpha (
int)
- Return type:
Sets the fill color. It will be used to fill shape iconics.
- View.ShapeDecoration.setLineColor(deco, red, green, blue, alpha)
- Arguments:
deco (
View.ShapeDecoration)red (
int)green (
int)blue (
int)alpha (
int)
- Return type:
Sets the line color. It will be used for line, points and text iconics as well as stroke color for shape iconics.
- View.ShapeDecoration.setLineWidth(deco, width)
- Arguments:
deco (
View.ShapeDecoration)width (
float)
- Return type:
Set the line width.
- View.ShapeDecoration.setPointSize(deco, size)
- Arguments:
deco (
View.ShapeDecoration)size (
float)
- Return type:
Sets the point size for point iconics.
- View.ShapeDecoration.setPointType(deco, type)
- Arguments:
deco (
View.ShapeDecoration)type (
enum)
- Return type:
Sets the display type for point iconics.
- View.ShapeDecoration.toString(shapeDecoration)
- Argument:
shapeDecoration (
View.ShapeDecoration)
- Return type:
string
Gets a user-friendly string description of the shape decoration.